class CreateUserHasRoles < ActiveRecord::Migration
  def change
    create_table :user_has_roles, :id => false, :force => true do |t|
      t.references :user, :null => false
      t.references :role, :null => false
    end

    add_index :user_has_roles, :user_id
    add_index :user_has_roles, :role_id
  end
end
